<div ng-include="sys_html('common/_header')"></div>
<style>
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 0 solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.fui-icon-group .fui-icon-col-sm.border {
	border: 1px solid #000;
}
.fui-cellone-icon{color:#000;padding-right:0.5rem;line-height:1.5}
.fui-icon-group .fui-icon-col-sm .icon{font-size:1.5rem;}
.member-page .headinfo .child.userinfo .face{
    border: 0 solid #fff;
}
.member-page .headinfo .child.userinfo .face img {
    height: 2.8rem;
    width: 2.8rem;
    border-radius: 2.8rem;
    display: block;
}
.fui-icon-group .fui-icon-col-sm .icon {
    height: auto;
    margin: auto;
    text-align: center;
    line-height: 1.4;
}
.fui-icon-group .fui-icon-col-sm .icon i {
    color: #000;
    font-size: 1.4rem;
    margin-top: 3px;
}
.fui-cell-group .fui-cell .fui-cell-icon {
	width: 1.5rem;
	text-align:left;
	color: #000;
}
.icon {
	font-size: 1.2rem;
}
.fui-cell-group .fui-cell .fui-cell-icon i {
	color: #000;
}
.fui-cell-group .fui-cell.changepwd .fui-cell-text {
	border: 1px solid #000;
	color: #000;
	background: #fff;
}
.fui-cell-group .fui-cell.btn-logout .fui-cell-text {
	background: #000;
}
</style>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class='fui-content member-page' style="background: #fff;">
				<div class="top" style="margin-bottom:-1.3rem;padding-top: 1rem">
					<div class="c" href="javascript:;" ng-click="access_json('core/member.set/')">
						<img style="width:3rem;height:3rem;border-radius:100%" src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/no-wxapp.png'}}"  />
					</div>
				</div>
				<div class="fui-line-title" style="padding-top:1.3rem" ng-click="tool.clip(pagedata.item.id)">
					<div>{{pagedata.item.nickname}}</div>
					<div style="color:#999;font-size:0.7rem">{{pagedata.isfromuser==1?'他':'我'}}的邀请码：{{pagedata.item.id}} <i class="icon icon-copy" style="font-size:0.6rem"></i></div>
				</div>
				<div class="fui-cell-group fui-cell-click mod-group" style="margin-top:0.5rem">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.xunibi/')">
								<div class="fui-cell-icon"><i class="icon icon-dixiaofei"></i></div>
								<div class="fui-cell-text">我的钱包</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看我的钱包</div>
							</a>
							<div class="fui-icon-group col-4 selecter">
								<div class="fui-icon-col-sm external" style="margin:0">
									<div ng-click="access_json('core/member.red_log/')">
										<div class="text bold" style="color:#000">{{pagedata.ideal_money || '0.00'}}</div>
										<div class="subtitle" style="font-size:12px;color: #666;">我的红包 <span style="color:#000">查看</span></div>
									</div>
								</div>
								<div ng-repeat="(key,item) in pagedata.credit_types" ng-if="key!=2" class="fui-icon-col-sm external" style="margin:0">
									<div ng-click="access_json('core/member.xunibi//type='+key)">
										<div class="text bold" style="color:#000">{{item.fee || '0.00'}}</div>
										<div class="subtitle" style="font-size:12px;color: #666;">{{item.title}} <span style="color:#000">查看</span></div>
									</div>
								</div>
							</div>
				</div>
				<div class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_tiffany/order.list/')">
								<div class="fui-cell-icon"><i class="icon icon-dingdan"></i></div>
								<div class="fui-cell-text">我的订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;"></div>
							</a>
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.address/')">
								<div class="fui-cell-icon"><i class="icon icon-juli"></i></div>
								<div class="fui-cell-text">收货地址</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;"></div>
							</a>
							<a ng-repeat="item in pagedata.setting.my_days" class="fui-cell external" href="javascript:;" ng-click="access_json(item.action)">
								<div class="fui-cell-icon"><i class="icon {{item.icon}}"></i></div>
								<div class="fui-cell-text">{{item.title}}</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;"></div>
							</a>
				</div>
				<div class="fui-cell-group fui-cell-click mod-group" style="margin-top: 1rem">
					<a class="fui-cell">
						<div class="fui-cell-text" style="font-size: 1rem">服务支持</div>
					</a>
					<a class="fui-cell external" href="javascript:;" ng-click="pagedata.itemtokefu();">
						<div class="fui-cell-text">
							<div class="bold">客户顾问</div>
							<div class="subtitle">周一至周日08:00 - 22:00</div>
						</div>
						<div class="fui-cell-remark" style="font-size: 0.65rem;"></div>
					</a>
					<a class="fui-cell external" href="javascript:;"  ng-click="access_json('jy_weishop/member.tiaokuan/')">
						<div class="fui-cell-text">
							条款及政策
						</div>
						<div class="fui-cell-remark" style="font-size: 0.65rem;"></div>
					</a>
				</div>
				<div class="mod-group">
						<div class="fui-cell-group fui-cell-click" style="background:none">
							<a class="fui-cell external changepwd" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
								<div class="fui-cell-text" style="text-align: center;">修改密码</div>
							</a>
							<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
								<div class="fui-cell-text" style="text-align: center;">退出登录</div>
							</a>
						</div>
				</div>
				<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>

<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_sales','','','jy_weishop')"></div>
<script>
	scope.pagedata.itemtokefu=function(){
		if(scope.pagedata.shopset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
			//H5小程序环境下
			var logo=scope.tomedia(scope.pagedata.account.logo);
			var title=scope.pagedata.account.title
			wx.miniProgram.navigateTo({
				url: '/pages/kefu/index?logo='+logo+'&title='+title
			})
		}else{
			if(scope.pagedata.setting.nokefu2!=1 && (!scope.pagedata.shopset.kefutype_h5 || scope.pagedata.shopset.kefutype_h5==0)){
				scope.access_json(pagedata.shopset.kflink);
			}else if(scope.pagedata.setting.nokefu2!=1 &&  scope.pagedata.shopset.kefutype_h5==1){
				scope.pagedata.kefuqr=scope.pagedata.shopset.kf_accountimg;
				scope.pagedata.showqrcode=1;
			}else if(scope.pagedata.setting.nokefu2!=1 &&  scope.pagedata.shopset.kefutype_h5==2){
				scope.access_json(scope.pagedata.shopset.appkflink)
			}else if(scope.pagedata.setting.nokefu2!=1 &&  scope.pagedata.shopset.kefutype_h5==3){
				scope.access_json(scope.pagedata.shopset.workerh5url);
			}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.shopset.kefutype_h5==4){
				scope.pagedata.kefuqr=scope.pagedata.shopset.guwenkfewm;
				scope.pagedata.showqrcode=1;
			}
			scope.$evalAsync();
		}
	}
</script>